import request from "../utils/request";


// 获取所有动态
export function getMoments(param) {
  return request({
    url: "/web/blogNote/g",
    method: "post",
    data: param,
  });
}

// 新增动态
export function addMoments(param) {
  return request({
    url: "/web/blogNote/a",
    method: "post",
    data: param,
  });
}

// 删除动态
export function deleteMoments(param) {
  return request({
    url: "/web/blogNote/d",
    method: "post",
    data: param,
  });
}

// 编辑动态
export function updateMoments(param) {
  return request({
    url: "/web/blogNote/u",
    method: "post",
    data: param,
  });
}

// 获取话题列表
export function getTopics(param) {
  return request({
    url: "/web/blogTopics/g",
    method: "post",
    data: param,
  });
}

// 新增话题
export function addTopic(param) {
  return request({
    url: "/web/blogTopics/a",
    method: "post",
    data: param,
  });
}

// 编辑话题
export function updateTopic(param) {
  return request({
    url: "/web/blogTopics/u",
    method: "post",
    data: param,
  });
}

// 删除话题
export function deleteTopic(param) {
  return request({
    url: "/web/blogTopics/d",
    method: "post",
    data: param,
  });
}

// 获取所有帖子
export function getPosts(param) {
  return request({
    url: "/web/forumNote/g",
    method: "post",
    data: param,
  });
}

// 新增帖子
export function addPost(param) {
  return request({
    url: "/web/forumNote/a",
    method: "post",
    data: param,
  });
}

// 删除帖子
export function deletePost(param) {
  return request({
    url: "/web/forumNote/d",
    method: "post",
    data: param,
  });
}

// 编辑帖子
export function updatePost(param) {
  return request({
    url: "/web/forumNote/u",
    method: "post",
    data: param,
  });
}

// 获取社区分类列表
export function getForumCategories(param) {
  return request({
    url: "/web/forumCategory/g",
    method: "post",
    data: param,
  });
}

// 新增社区分类
export function addForumCategory(param) {
  return request({
    url: "/web/forumCategory/a",
    method: "post",
    data: param,
  });
}

// 编辑社区分类
export function updateForumCategory(param) {
  return request({
    url: "/web/forumCategory/u",
    method: "post",
    data: param,
  });
}

// 删除社区分类
export function deleteForumCategory(param) {
  return request({
    url: "/web/forumCategory/d",
    method: "post",
    data: param,
  });
}

// 获取活动列表
export function getActivities(param) {
  return request({
    url: "/web/activityMessage/g",
    method: "post",
    data: param,
  });
}

// 新增活动
export function addActivity(param) {
  return request({
    url: "/web/activityMessage/a",
    method: "post",
    data: param,
  });
}

// 编辑活动
export function updateActivity(param) {
  return request({
    url: "/web/activityMessage/u",
    method: "post",
    data: param,
  });
}

// 删除活动
export function deleteActivity(param) {
  return request({
    url: "/web/activityMessage/d",
    method: "post",
    data: param,
  });
}

// 获取帖子分类列表
export function getPostCategories(param) {
  return request({
    url: "/web/forumPostCategory/g",
    method: "post",
    data: param,
  });
}

// 新增帖子分类
export function addPostCategory(param) {
  return request({
    url: "/web/forumPostCategory/a",
    method: "post",
    data: param,
  });
}

// 编辑帖子分类
export function updatePostCategory(param) {
  return request({
    url: "/web/forumPostCategory/u",
    method: "post",
    data: param,
  });
}

// 删除帖子分类
export function deletePostCategory(param) {
  return request({
    url: "/web/forumPostCategory/d",
    method: "post",
    data: param,
  });
}

// 获取社区列表
export function getCommunities(param) {
  return request({
    url: "/web/forumModule/g",
    method: "post",
    data: param,
  });
}

// 新增社区
export function addCommunity(param) {
  return request({
    url: "/web/forumModule/a",
    method: "post",
    data: param,
  });
}

// 编辑社区
export function updateCommunity(param) {
  return request({
    url: "/web/forumModule/u",
    method: "post",
    data: param,
  });
}

// 删除社区
export function deleteCommunity(param) {
  return request({
    url: "/web/forumModule/d",
    method: "post",
    data: param,
  });
}

// 获取活动订单列表
export function getActivityOrders(param) {
  return request({
    url: "/web/activityOrder/g",
    method: "post",
    data: param,
  });
}

// 新增活动订单
export function addActivityOrder(param) {
  return request({
    url: "/web/activityOrder/a",
    method: "post",
    data: param,
  });
}

// 编辑活动订单
export function updateActivityOrder(param) {
  return request({
    url: "/web/activityOrder/u",
    method: "post",
    data: param,
  });
}

// 删除活动订单
export function deleteActivityOrder(param) {
  return request({
    url: "/web/activityOrder/d",
    method: "post",
    data: param,
  });
}

// 获取活动订单参与人列表
export function getActivityOrderVotes(param) {
  return request({
    url: "/web/activityOrderVotes/g",
    method: "post",
    data: param,
  });
}

// 新增活动订单参与人
export function addActivityOrderVotes(param) {
  return request({
    url: "/web/activityOrderVotes/a",
    method: "post",
    data: param,
  });
}

// 编辑活动订单参与人
export function updateActivityOrderVotes(param) {
  return request({
    url: "/web/activityOrderVotes/u",
    method: "post",
    data: param,
  });
}

// 删除活动订单参与人
export function deleteActivityOrderVotes(param) {
  return request({
    url: "/web/activityOrderVotes/d",
    method: "post",
    data: param,
  });
}

// 获取活动订单参与人列表 来自订单列表
export function getActivityOrderVotesByOrder(param) {
  return request({
    url: "/web/activityOrder/gp",
    method: "post",
    data: param,
  });
}

// 获取动态回复列表
export function getBlogReplies(param) {
  return request({
    url: "/web/blogReply/g",
    method: "post",
    data: param,
  });
}

// 新增动态回复
export function addBlogReply(param) {
  return request({
    url: "/web/blogReply/a",
    method: "post",
    data: param,
  });
}

// 编辑动态回复
export function updateBlogReply(param) {
  return request({
    url: "/web/blogReply/u",
    method: "post",
    data: param,
  });
}

// 删除动态回复
export function deleteBlogReply(param) {
  return request({
    url: "/web/blogReply/d",
    method: "post",
    data: param,
  });
}

// ==================== 帖子回复管理 ====================
// 获取帖子回复列表
export function getForumReplies(param) {
  return request({
    url: "/web/forumReply/g",
    method: "post",
    data: param,
  });
}

// 新增帖子回复
export function addForumReply(param) {
  return request({
    url: "/web/forumReply/a",
    method: "post",
    data: param,
  });
}

// 编辑帖子回复
export function updateForumReply(param) {
  return request({
    url: "/web/forumReply/u",
    method: "post",
    data: param,
  });
}

// 删除帖子回复
export function deleteForumReply(param) {
  return request({
    url: "/web/forumReply/d",
    method: "post",
    data: param,
  });
}

// 获取核销码
export function getWriteOffCode(param) {
  return request({
    url: "/web/activityOrder/gcd",
    method: "post",
    data: param,
  });
}

// 核销订单
export function writeOffOrder(param) {
  return request({
    url: "/web/activityOrder/wo",
    method: "post",
    data: param,
  });
}

// ==================== 论坛话题管理 ====================
// 获取论坛话题列表
export function getForumTopics(param) {
  return request({
    url: "/web/forumTopics/g",
    method: "post",
    data: param,
  });
}

// 新增论坛话题
export function addForumTopic(param) {
  return request({
    url: "/web/forumTopics/a",
    method: "post",
    data: param,
  });
}

// 编辑论坛话题
export function updateForumTopic(param) {
  return request({
    url: "/web/forumTopics/u",
    method: "post",
    data: param,
  });
}

// 删除论坛话题
export function deleteForumTopic(param) {
  return request({
    url: "/web/forumTopics/d",
    method: "post",
    data: param,
  });
}

// 获取打赏记录列表
export function getRewardOrders(param) {
  return request({
    url: "/web/rewardOrder/g",
    method: "post",
    data: param,
  });
}